/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nc.solutions.rentacar.domain.city.Impl;

import com.nc.solutions.rentacar.domain.station.IStation;
import com.nc.solutions.rentacar.domain.city.ICity;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author I
 */
public class City implements ICity{

    private String region;
    private String name;
    private long id;
    private List<IStation> listStaions = new ArrayList<IStation>();
    @Override
    public String getRegion() {
        return region;
    }

    @Override
    public void setRegion(String value) {
        this.region = value;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String value) {
        this.name = value;
    }

    @Override
    public void addStation(IStation station) {
        listStaions.add(station);
    }

    @Override
    public IStation getStation(int index) {
        return listStaions.get(index);
    }

    @Override
    public void deleteStation(int index) {
        listStaions.remove(index);
    }

    @Override
    public long getID() {
        return id;
    }

    @Override
    public void setID(long value) {
        this.id = value;
    }
    
}
